// components/co-search/CoSearch.js
Component({
  options: {
    addGlobalClass: true,
    multipleSlots: true,
  },
  externalClasses: [
    'custom-class'
  ],
  /**
   * 组件的属性列表
   */
  properties: {
    bgURL: {
      type: String,
      value: '../../imgs/co-search.jpg'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    search(e) {
      const { value } = e.detail
      this.triggerEvent('search', value)
    },
    goSearch() {
      this.triggerEvent('goSearch')
    }
  }
})
